<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>视频添加页面</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar">
        <div class="m-title">{{action=='Add'?'添加信息':action=='Modify'?'查看信息':''}}</div>
      </div>
    </header>
    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'videos', 'form': 'dataForm' ,'primary_key':'Video_SerialNumber' })">
      <div class="yl-main">
        <div class="table_titel">
          <div class="titel">视频信息</div>
        </div>
        <el-descriptions :column="1" size="large" border>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">视频名称</div>
            </template>
            <el-input disabled ref="personal_information" v-model="dataForm.Video_Name" class="borderless-input"
              placeholder="请输入视频名称" />
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">视频类型</div>
            </template>
            <el-select disabled clearable v-model.trim="dataForm.Video_Category_SerialNumber" placeholder="请选择视频类别" filterable
              style="width: 100%">
              <el-option v-for="(item,index) in category" :key="index" :label="item.Video_Category"
                :value="item.Video_Category_SerialNumber"></el-option>
            </el-select>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">视频标签</div>
            </template>
            <el-cascader disabled class="borderless-input" style="width: 100%;" v-model="Video_Tag_SerialNumber"
              placeholder="请选择视频标签" :options="videos_tags"
              :props="{ value:'Video_Tag_SerialNumber', label:'Video_Tag' ,checkStrictly: false , emitPath:false , multiple:true}"></el-cascader>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">是否在小程序上展示</div>
            </template>
            <el-select disabled v-model.trim="dataForm.Environment_MicroScreen" placeholder="请选择是否在小程序上展示" filterable
              style="width: 100%">
              <el-option v-for="(item,index) in [{label:'是',value:'0'},{label:'否',value:'1'}]" :key="index"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">是否在大屏上展示</div>
            </template>
            <el-select disabled v-model.trim="dataForm.Environment_BigScreen" placeholder="请选择是否在大屏上展示" filterable
              style="width: 100%">
              <el-option v-for="(item,index) in [{label:'是',value:'0'},{label:'否',value:'1'}]" :key="index"
                :label="item.label" :value="item.value"></el-option>
            </el-select>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">视频封面</div>
            </template>
            <el-image style="width: 160px; height: 160px;" :src="photo + dataForm.Video_Image_URL"></el-image>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">上传视频</div>
            </template>
            <yl-upload accept="video/*" v-model="dataForm.Video_URL" drag @success="success" @progress="progress"></yl-upload>
          </el-descriptions-item>
        </el-descriptions>
        <!-- 在视频信息表单后面添加以下代码 -->
        <div id="ChildTable">
          <!-- <div class="table_titel">
            <div class="titel">视频标签</div>
          </div>

          <el-form :model="dataForm" ref="form" :inline-message="true" style="width: 100%">
            <el-descriptions :column="1" size="large" border>
 
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">题材</div>
                </template>
                <el-form-item prop="Theme_Tag_SerialNumber">
                  <el-select clearable v-model="dataForm.Theme_Tag_SerialNumber" multiple placeholder="请选择题材(可多选)"
                    filterable style="width: 100%">
                    <el-option v-for="(item, index) in themeTags" :key="index" :label="item.Video_Tag"
                      :value="item.Video_Tag_SerialNumber">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-descriptions-item>

              
              <el-descriptions-item>
                <template #label>
                  <div class="cell-item">时代背景</div>
                </template>
                <el-form-item prop="Background_Tag_SerialNumber">
                  <el-select clearable v-model="dataForm.Background_Tag_SerialNumber" multiple
                    placeholder="请选择时代背景(可多选)" filterable style="width: 100%">
                    <el-option v-for="(item, index) in backgroundTags" :key="index" :label="item.Video_Tag"
                      :value="item.Video_Tag_SerialNumber">
                    </el-option>
                  </el-select>
                </el-form-item>
              </el-descriptions-item>
            </el-descriptions>
          </el-form> -->
          <el-descriptions
            :data-options="JSON.stringify({ 'TableName': 'videos_mapping_tags', 'form': 'childDataForm', 'ParentTableName': 'videos'})"></el-descriptions>
        </div>
      </div>
    </div>

    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <el-button type="primary" :loading="loading" plain @click="handleSubmit">提交</el-button>
    </footer>
  </div>
</body>
<script src="../../../utils/compressor.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/utils.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>
<script src="./js/add.js"></script>

</html>